<?php 
namespace Zbsht\Model;

use Think\Model;


class UserModel extends Model {


	protected $_link = array(
		'role'	=> 	array(
			'mapping_type'	=>	ONT_TO_ONT,
			'foreign_key'	=>	'user_id',
			'relation_key'	=>	'role_id',
			'relation_table'=>	'think_role_user',	
		),
	);


	public function getSelect(){


		return $this->getField('id' , true);
	}









}












?>